package com.qianli.cashmama.trade.domain.model;

import com.qianli.cashmama.trade.common.enums.TaskStatusEnum;
import com.qianli.cashmama.trade.common.enums.TaskTypeEnum;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/7/22
 * Time: 下午4:00
 */
public class TradeTaskCenter implements Serializable {
    private static final long serialVersionUID = 3162489333274374303L;

    private long id;

    /**
     * 流水号
     */
    private String bizNo;
    /**
     * 交易号
     */
    private String tradeNo;
    /**
     * 任务类型
     */
    private com.qianli.cashmama.trade.common.enums.TaskTypeEnum taskType;
    /**
     * 任务状态
     */
    private com.qianli.cashmama.trade.common.enums.TaskStatusEnum taskStatus;
    /**
     * 任务重试次数
     */
    private Integer taskRetryTimes;
    /**
     * 任务执行结果信息
     */
    private String resultMsg;

    public long getId() {
        return id;
    }

    public TradeTaskCenter setId(long id) {
        this.id = id;
        return this;
    }

    public String getBizNo() {
        return bizNo;
    }

    public TradeTaskCenter setBizNo(String bizNo) {
        this.bizNo = bizNo;
        return this;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public TradeTaskCenter setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
        return this;
    }

    public com.qianli.cashmama.trade.common.enums.TaskTypeEnum getTaskType() {
        return taskType;
    }

    public TradeTaskCenter setTaskType(TaskTypeEnum taskType) {
        this.taskType = taskType;
        return this;
    }

    public com.qianli.cashmama.trade.common.enums.TaskStatusEnum getTaskStatus() {
        return taskStatus;
    }

    public TradeTaskCenter setTaskStatus(TaskStatusEnum taskStatus) {
        this.taskStatus = taskStatus;
        return this;
    }

    public Integer getTaskRetryTimes() {
        return taskRetryTimes;
    }

    public TradeTaskCenter setTaskRetryTimes(Integer taskRetryTimes) {
        this.taskRetryTimes = taskRetryTimes;
        return this;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public TradeTaskCenter setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
        return this;
    }
}
